package io.youngledo.usb.storage;

import java.time.LocalDateTime;

public record StorageBucket(
    String name,
    LocalDateTime creationDate,
    String location
) {
    // 简化构造方法，只需要名称
    public static StorageBucket of(String name) {
        return new StorageBucket(name, null, null);
    }

    // 带创建时间的构造方法
    public static StorageBucket of(String name, LocalDateTime creationDate) {
        return new StorageBucket(name, creationDate, null);
    }

    public static StorageBucket of(String name, LocalDateTime creationDate, String location) {
        return new StorageBucket(name, creationDate, location);
    }
}